﻿
using LiuQiuRong.Chat.Businesses.Users.Dtos;
using LiuQiuRong.Chat.Repositories.Users.Entities;
using LiuQiuRong.Chat.Utilities.Model;
using System.Collections.Generic;
using System.Security.Claims;

namespace LiuQiuRong.Chat.Businesses.Users
{
    public partial interface IUserServices : IBaseService<UserEntity, UserDto>
    {
        ServiceResult Add(UserUnsafeDto user);

        ServiceResult Login(UserUnsafeDto user);

        UserLoginDto GetCurrentUser(ClaimsPrincipal claims);

        ServiceResult CancelAuthorize();

        List<UserLoginDto> GetOnlineUsers();
    }
}
